<h1>Editing issue</h1>

<%= error_messages_for :issue %>

<% form_for(:issue, :url => issue_path(@issue), :html => { :method => :put }) do |f| %>
  <p>
    <b>Serial</b><br />
    <%= select("issue", "serial_id", Serial.find(:all).collect {|s| [ s.name, s.id ] }, { :include_blank => true }) %>
   </p>

  <p>
    <b>Issue date</b><br />
    <%= f.text_field :issue_date %>
  </p>

  <p>
    <b>Volume</b><br />
    <%= f.text_field :volume %>
  </p>

  <p>
    <b>No</b><br />
    <%= f.text_field :no %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', issue_path(@issue) %> |
<%= link_to 'Back', issues_path %>